package com.xxtx.trade.agent.vo;

//微信商户开发API密钥：dme0kMJgZ1KJ4aRC59cgXQZvdv0YEFAp
//微信商户号：1534210531
//商户名称：深圳市小象通信科技有限公司
//商户简称：小象通信

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class WeChatConf {
    //应用ID
    @Value("${pay.appId}")
    String APP_ID = "wxa71893526655bbd2";
    //商户ID
    @Value("${pay.mchId}")
    String MCH_ID = "1559840431";
    //签名字符串
    @Value("${pay.keySign}")
    String KEY_SIGN = "5b35b8a291e843d6856541e024cdebf7";
    //签名密钥
    @Value("${pay.appSecret}")
    String APP_SECRET = "26d3dcf84e5c9f26292c71cd23f5d823";

    @Value("${pay.p12Path}")
    String P12_PATH = "";

    public static String ORG_PAY_URL = "https://api.mch.weixin.qq.com/mmpaymkttransfers/promotion/transfers";
    public static String URL_UNIFY_ORDER = "https://api.mch.weixin.qq.com/pay/unifiedorder";
    public static String URL_QUERY_ORDER = "https://api.mch.weixin.qq.com/pay/orderquery";
    public static String ACCESS_TOKEN = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";
    public static String USER_INFO = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";

    //京东支付统一下单地址
    public static String JD_UNIORDER = "https://paygate.jd.com/service/uniorder";
    //京东支付版本号定义
    public static String JD_PAY_VERSION = "V2.0";

    public String getAPP_ID() {
        return APP_ID;
    }

    public void setAPP_ID(String APP_ID) {
        this.APP_ID = APP_ID;
    }

    public String getMCH_ID() {
        return MCH_ID;
    }

    public void setMCH_ID(String MCH_ID) {
        this.MCH_ID = MCH_ID;
    }

    public String getKEY_SIGN() {
        return KEY_SIGN;
    }

    public void setKEY_SIGN(String KEY_SIGN) {
        this.KEY_SIGN = KEY_SIGN;
    }

    public String getAPP_SECRET() {
        return APP_SECRET;
    }

    public void setAPP_SECRET(String APP_SECRET) {
        this.APP_SECRET = APP_SECRET;
    }

    public String getP12_PATH() {
        return P12_PATH;
    }

    public void setP12_PATH(String p12_PATH) {
        P12_PATH = p12_PATH;
    }
}
